<div ng-controller="networkCtrl" class="clearfix script-content">
    <div class="wrapper-md">
      <div class="">
        <div class="panel panel-default m-b">
          <div class="panel-heading">概述</div>
          <div class="panel-detail">
            <div class="col-md-3">
              <div class="small-box s-bg-primary">
                <div class="small-box-h text-center bg-primary-h">
                  <p class="small-box-p"><img src="/statics/img/dashborad/status_general.png" alt=""></p>
                  <p>总体状态</p>
                </div>
                <div class="small-box-count">
                  <div class="font-large" ng-bind="dashboradData.platform.status|cn:'status'"></div>
                </div>
              </div>
            </div>
            <div class="col-md-3">
              <div class="small-box s-bg-green pointer" ui-sref="app.assets.vm">
                <div class="small-box-h text-center bg-green-h">
                  <p class="small-box-p"><img src="/statics/img/dashborad/status_case.png" alt=""></p>
                  <p>实例数</p>
                </div>
                <div class="small-box-count">
                  <div class="font-large" ng-bind="dashboradData.platform.instances"></div>
                  <div>
                    <div>开机：{{dashboradData.platform.onlines}}</div>
                    <div>关机：{{dashboradData.platform.offlines}}</div>
                    <div>异常：{{dashboradData.platform.errors}}</div>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-3">
              <div class="small-box s-bg-yellow pointer" ui-sref="app.tenant.tenant">
                <div class="small-box-h text-center bg-yellow-h">
                  <p class="small-box-p"><img src="/statics/img/dashborad/tenant.png" alt=""></p>
                  <p>租户数量</p>
                </div>
                <div class="small-box-count">
                  <div class="font-large" ng-bind="dashboradData.platform.tenants"></div>
                </div>
              </div>
            </div>
            <div class="col-md-3">
              <div class="small-box s-bg-aqua pointer" ui-sref="app.monitor.manage">
                <div class="small-box-h text-center bg-aqua-h">
                  <p class="small-box-p"><img src="/statics/img/dashborad/alarm.png" alt=""></p>
                  <p>告警数量</p>
                </div>
                <div class="small-box-count">
                  <div class="font-large">{{dashboradData.platform.alarms}}</div>
                  <div>
                    <div>提醒：{{dashboradData.platform.reminds}}</div>
                    <div>警告：{{dashboradData.platform.warns}}</div>
                    <div>危险：{{dashboradData.platform.dangers}}</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
        <div class="panel panel-default" ng-show="!showDetail">
            <div class="">

                <div class="col-md-12 search-box m-b-md" style="float:none;">
                    <div class="legend">查询条件</div>
                    <div class="search-content">
                        <div class="form-group">
                            <label class="control-label">名称：</label>
                            <input type="name" ng-model="searchByName" class="form-control input-sm" placeholder="" aria-controls="DataTables_Table_3">
                        </div>
                    </div>
                    <div class="search-btn">
                        <button class="btn btn-primary w-xs m-r" ng-click="getData(1)"><i class="fa fa-search"></i> 查询</button>
                        <button class="btn btn-success w-xs m-r" ng-click="sync($event,row,'lg')"><i class="fa fa-hourglass-start"></i> 同步</button>
                        <!--<button class="btn btn-primary w-xs m-r" ng-click="add($event,'lg')"><i class="fa fa-plus-circle"></i> 新增</button>-->
                    </div>
                </div>

                <div class="col-md-12" style="float:none;">
                    <div class="dataTables_wrapper form-inline">
                        <div class="row">
                            <div class="col-sm-12" style="margin-top: -10px;">
                                <table class="table b-light m-b-xxs">
                                    <thead class="table-header">
                                    <tr>
                                        <th width="10%" class="text-center font-15">名称</th>
                                        <th width="20%" class="text-center font-15">类型</th>
                                        <th width="30%" class="text-center font-15">源地址</th>
                                        <th width="20%" class="text-center font-15">包数量</th>

                                        <th class="text-center td-operate font-15" width="20%">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="table-content" ng-repeat="row in countData" ng-if="!isImageData">
                                        <td width="10%" class="text-center detail-href font-15 text-overflow" style="max-width:392px;" title="{{row.name}}" ng-click="detail(row.id)" ng-bind="row.name"></td>
                                        <td width="20%" class="text-center font-15 text-overflow" style="max-width:655px;" title="{{row.type}}" ng-bind="row.type"></td>
                                        <td width="30%" class="text-center font-15 text-overflow" style="max-width:655px;" title="{{row.address}}" ng-bind="row.address"></td>
                                        <td width="20%" class="text-center font-15 text-overflow" style="max-width:655px;" title="{{row.instance}}" ng-bind="row.instance"></td>
                                        <td width="20%" class="td-operate text-center">
                                          <button class="btn btn-success btn-sm" ng-click="remove(row.id,$event,$index,key)">
                                              <i class="fa fa-trash-o"></i>
                                              <span class="">编辑</span>
                                          </button>
                                          <button class="btn btn-danger btn-sm" ng-click="remove(row.id,$event,$index,key)">
                                              <i class="fa fa-trash-o"></i>
                                              <span class="">删除</span>
                                          </button>
                                      </td>
                                    </tr>
                                    <tr ng-if="isImageData">
                                        <td class="td-nodata" colspan="5"></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <div class="clearfix">
                                    <div class="col-sm-6" style="padding:7px 15px;">
                                        <div class="paginationTables_info">总共<span ng-bind="totalCount"></span>条, 每页<span ng-bind="param.rows"></span>条</div>
                                    </div>
                                    <div class="col-sm-6 text-right">
                                        <pagination style="" boundary-links="true" total-items="totalCount" items-per-page="param.rows" max-size="10" ng-model="param.page" ng-change="getData(param.page)" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
